import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
	resolve: {
	  alias: {
	    "@": resolve(__dirname, "src"),
	  },
	},
	server: {
		open: true, // 在服务器启动时自动在浏览器中打开应用程序
		//host: 'localhost',  // 指定服务器主机名
		port: 6002, // 指定服务器端口
		proxy: {
			"/ihomesaas": {
			target: "https://devsaas.polyihome.com",
			changeOrigin: true,
			},
		},
	},
});
